#ifndef _MIXER_H_
#define _MIXER_H_

#include "SDL_mixer.h"
#include <string>

namespace sdl
{
class Mixer
{
public:
	Mixer();
	virtual ~Mixer();
	//Mixer(int audio_rate, Uint16 audio_format,int audio_channels,int audio_buffers);

	void playMusic     (char* path);
	void playEffect    (std::string type);
	void volumeControl (int);
	void freeChannelOne();

	void setAudio_rate    (int);
	void setAudio_format  (Uint16);
	void setAudio_channels(int);
	void setAudio_buffers (int);
	void setMusic         (Mix_Music*);

	Mix_Music* getMusic();
	int        getAudio_rate();
	Uint16     getAudio_format();
	int        getAudio_buffers();
	int        getAudio_channels();
	
private:
	
	Uint16    audio_format; /* 16-bit stereo */
	int       audio_rate;
	int       audio_channels;
	int       audio_buffers;
	int       channel;
	Mix_Music *music;
	Mix_Chunk *sound;

};
};
#endif